package com.parkingspace.entity;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 车辆信息表
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车辆信息ID
     */
      @TableId(value = "carid", type = IdType.ASSIGN_ID)
      @JsonSerialize(using = ToStringSerializer.class)
    private Long carid;

    /**
     * 车牌号
     */
    private String plateNumber;

    /**
     * 车辆型号
     */
    private String carType;

    /**
     * 车辆所有人id(连接用户表id)
     */
    private Long uid;

    /**
     * 备注
     */
    private String remark;

    /**
     * 软删除(0:未删除,1:已删除)
     */
    @TableLogic
    @TableField(select = false)
    private Integer softdel;

    /**
     * 行驶证编号
     */
    private String drivingPermitNo;


}
